from django.conf.urls.defaults import *

urlpatterns = patterns('views',
    (r'^$', 'index'),
    (r'^summary/$', 'summary'),
    (r'^summary/(?P<groupname>[\S\s]+?)/$', 'summary'),
    (r'^notpay/$', 'notpay'),
    (r'^additem/$', 'additem'),
    (r'^incomes/$', 'incomes'),
    (r'^payouts/$', 'payouts'),
    (r'^report/$', 'report'),
)

urlpatterns += patterns('admin',
    (r'^login/$', 'login'),
    (r'^logout/$', 'logout'),
    (r'^join/$', 'join'),
    (r'^profile/$', 'profile'),
    (r'^groupaction/(?P<action>\S+)/(?P<key>\S+)/(?P<email>\S*)$', 'groupaction'),
    (r'^joingroup/$', 'joingroup'),
    (r'^joingroup/(?P<groupname>[\S\s]+?)/$', 'joingroup'),
    (r'^allgroups/', 'allgroups'),
    (r'^genreport/(?P<chart>\S+)/(?P<report>\S+)/(?P<count>\d+)/(?P<width>\d+)/(?P<height>\d+)/$', 'genReport'),
    (r'^creategroup/', 'creategroup'),
    (r'^awaiting/', 'awaiting'),
    (r'^groupusers/', 'groupusers'),
    (r'^groupadmins/', 'groupadmins'),
    (r'^downloadcodes/', 'downloadscodes'),
)
